<template>
  <div>
    <h1>我的审核</h1>
    <table>
      <tr v-for='i in list' :key="i.id">
        <td>{{i.title}}</td>
        <td v-if='i.status ==2'>审核中</td>
        <td v-else-if='i.status ==3'>审核完成</td>
        <td v-else-if='i.status ==1 && i.next_nev==0'>审核失败，查看
          <router-link :to="{name:'eadittask',query:{'taskid':i.id,'id':i.wid}}">修改</router-link>

        </td>
        <td v-else>待审核</td>
      </tr>
    </table>


  </div>
</template>

<script>
import myaxios from "@/http/axios";

export default {
  name: "mytasklist",
  data() {
    return {
      data1: '',
      list:[],
      userid:2
    }
  },
  methods: {
    getmytask(){
      myaxios('mytaskhandle?userid='+this.userid,'get').then(res=>{
        this.list = res.list
      })
    }
  },
  mounted() {
      this.getmytask()
  }
}
</script>

<style scoped>

</style>